import { SAVEUSERINFO, DELETEUSERINFO } from "../action_types";
export const createSaveUserInfoAction = (val) => ({
  type: SAVEUSERINFO,
  data: val,
});

export const createDeleteUserInfoAction = () => {
  localStorage.removeItem("user");
  localStorage.removeItem("token");
  return {
    type: DELETEUSERINFO,
  };
};
